# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-terminal
pkgver=3.44.0
pkgrel=1
pkgdesc="GNOME terminal emulator application"
url="https://wiki.gnome.org/Apps/Terminal"
# s390x and riscv64 blocked by polkit -> gnome-shell
arch="all !s390x !armhf !ppc64le !riscv64"
license="GPL-2.0-or-later AND GFDL-1.3-only"
depends="
	dbus
	desktop-file-utils
	gnome-shell-schemas
	gsettings-desktop-schemas
	ncurses-terminfo-base
	"
makedepends="
	dconf-dev
	glib-dev
	gnome-shell
	gsettings-desktop-schemas-dev
	intltool
	itstool
	meson
	nautilus-dev
	pcre2-dev
	vte3-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-terminal/${pkgver%.*}/gnome-terminal-$pkgver.tar.xz
	fix-W_EXITCODE.patch
	"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
0cf039c0aa364a9ac63d9f24d466506a919cf733f2ee8dc1c6f42459e6c742bad678f7ad7cec3721e9512b8f414dc4c4c1f29057c73e5e4a870a04d6bcd98ed6  gnome-terminal-3.44.0.tar.xz
3bbc0e9dbbbfd4a3263b5d195a78df9cc70d13ae02d3a2981886001e79d92c2bfe4962954efba8fbab69f23e1778d5fbe3436f494b70e196ecedb02bf9d95400  fix-W_EXITCODE.patch
"
